# -*- encoding:utf-8 -*-
# @Time: 2022/12/25 15:43
# @Author :xibin
# @Email: xibin@maqu. com
# @File: urls.py
# @Software: PyCharm
from django.urls import path
from rest_framework_jwt.views import obtain_jwt_token
from .views import ArticleViewSet,CommentViewSet
from rest_framework.routers import DefaultRouter  #默认路由，路由器的创建

urlpatterns = [
    # path('login/',obtain_jwt_token), #token登陆
    # path('image/verification/<uuid:uuid>/',ArticleViewSet.as_view())

]
router = DefaultRouter()  #创建路由器
router.register('article',ArticleViewSet)  #注册
router.register('comments',CommentViewSet)  #注册
urlpatterns +=router.urls  #拼接路由

